import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DesignComponent } from './design.component';
import {RouterModule, Routes} from '@angular/router';

const designRoutes: Routes = [
  {path: '', component: DesignComponent, children: [
      {path: '', redirectTo: '/design/web', pathMatch: 'full'},
      {path: 'web', loadChildren: './web/web.module#WebModule'}
    ]}
];

@NgModule({
  imports: [
    CommonModule,
    RouterModule.forChild(designRoutes)
  ],
  declarations: [DesignComponent]
})
export class DesignModule { }
